package com.learn.springcloud.second.api;

import com.learn.springcloud.second.web.model.HandleResult;
import com.learn.springcloud.second.web.model.UserInfoModel;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

/**
 * @auth lwt
 * @data 2022/8/24
 */
@RequestMapping(value = "/test/clientFeign/")
public interface ClientFeignTestApi {

    @RequestMapping(value = "/testPost", method = RequestMethod.POST)
    HandleResult<UserInfoModel> testPost(@RequestBody UserInfoModel userInfoModel);

    @RequestMapping(value = "/testGet", method = RequestMethod.GET)
    HandleResult<UserInfoModel> testGet(@SpringQueryMap UserInfoModel userInfoModel);

    @PostMapping(value = "/testPostMapping")
    HandleResult<UserInfoModel> testPostMapping(@RequestBody UserInfoModel userInfoModel);

    @GetMapping(value = "/testGetMapping")
    HandleResult<UserInfoModel> testGetMapping(@SpringQueryMap UserInfoModel userInfoModel);

}
